tests: Allow setting a subdir for output
authorMatthias Clasen <mclasen@redhat.com>
Fri, 15 May 2020 13:18:35 +0000 (09:18 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 15 May 2020 18:11:53 +0000 (14:11 -0400)
commitc22af8823536e055d4c570991e4d12f6314d8ec3
tree984ddd0d7b0d23e4a806fa1a8bf47044097a4703
parent6719616c364b8cc17ca6eb20ead69d09bd5319a3
tests: Allow setting a subdir for output

meson seems somewhat weak when it comes to handling
test output. We need to get the output from different
test runs into different locations, and the only
way to communicate from a test setup with the actual
test code seems the environment, so use that.

Make all tests that produce output in files respect
a TEST_OUTPUT_SUBDIR environment variable which specifies
the name of a subdirectory to use. This is combined
with the existing --output argument, which specifies
a per-test location.

Affected tests are reftests, css performance tests
and gsk compare tests.
testsuite/gsk/compare-render.c
testsuite/performance/test-performance.c
testsuite/reftests/gtk-reftest.c